@import (reference) "../../color.less";

.pagination(@main-font-color, @second-font-color, @border-color) {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: @second-font-color;
  font-size: 12px;
  .pagination-button {
    background: transparent;
    height: 18px;
    width: 18px;
    border-radius: 2px;
    border: @border-color solid 1px;
    position: relative;
    margin-right: 8px;
    .pagination-button-arrow {
      font-style: normal;
      position: absolute;
      display: inline-block;
      height: 6px;
      width: 6px;
      border-top: solid 2px @second-font-color;
    }
    &[datatype="pre"] {
      margin-left: 10px;
      .pagination-button-arrow {
        top: 4px;
        left: 6px;
        border-left: solid 2px @second-font-color;
        transform: rotate(-45deg);
      }
    }
    &[datatype="next"] {
      margin-right: 16px;
      .pagination-button-arrow {
        top: 4px;
        left: 2px;
        border-right: solid 2px @second-font-color;
        transform: rotate(45deg);
      }
    }
  }
  .pagination-input {
    background: transparent;
    height: 20px;
    width: 40px;
    color: @main-font-color;
    font-size: 12px;
    padding-left: 6px;
    padding-right: 6px;
    border: solid 1px @border-color;
    border-radius: 2px;
    margin-left: 4px;
    margin-right: 4px;
  }

  .pagination-confirm-button {
    font-size: 12px;
    color: #ffffff;
    background: @main-blue-color;
    border-radius: 2px;
    height: 20px;
    padding-left: 6px;
    padding-right: 6px;
    margin-left: 10px;
  }

}

.pagination-night {
  .pagination(@main-font-color-night, @second-font-color-night, @border-color-night)
}

.pagination-day {
  .pagination(@main-font-color-day, @second-font-color-day, @border-color-day)
}
